home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / masdir54.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-10-06  |  6KB  |  146 lines

  1. Echo Off
  2. If exist sdl_get.exe goto start
  3. Echo Unable to locate the file sdl_get.EXE.  This file is on your
  4. Echo original MASDIR disk or a backup copy.  Please run INSTALL again
  5. Echo from the drive and/or directory that contains the MASDIR files.
  6. :start
  7. sdl_get BE %A%
  8. Echo * * *
  9. Echo With your permission, INSTALL will copy a few of the MASDIR files
  10. Echo to your hard disk or to another floppy.  No changes will be made
  11. Echo to your AUTOEXEC.BAT or to your CONFIG.SYS.  You may abort this
  12. Echo program at any time by pressing Ctrl-C or Ctrl-Break.  You may
  13. Echo also press Esc at any prompt to cancel the rest of the program.
  14. Echo Do not press Enter or Return after you press another key unless you
  15. Echo have been asked to enter more than one character at a prompt.
  16. :getdrive
  17. sdl_get YE
  18. Set D=%GET%
  19. If exist %D%:sdl.com goto isthere
  20. :whatdrive
  21. Echo * * *
  22. Echo The current drive is %D%:
  23. Echo SDL.COM does not appear to be on this drive.  Please enter the
  24. Echo one-letter designator of the drive where the MASDIR disk is.
  25. :again
  26. Echo SDL.COM was not found on the drive you specified.  If it is in
  27. Echo a subdirectory on that drive we can make that subdirectory
  28. Echo current for the drive so SDL.COM can be found.  If so,
  29. Echo enter the drive:\directory, or just Return if you want to exit
  30. Echo to change disks or directories. Press Return after you make your entry.
  31. Echo * * *
  32. sdl_get S "Please enter the drive:\directory to find SDL.COM: "
  33. if not errorlevel 1 goto exit
  34. Set D=%GET%
  35. if not errorlevel 2 goto exist
  36. cd %D%
  37. Echo That should do it, now please enter the one-letter drive
  38. Echo designator for that same disk.  This is necessary for proper
  39. Echo operation of INSTALL.
  40. :askdrive
  41. Echo * * *
  42. sdl_get C "Enter one letter (a,b,c,d,e,f,g,h,i): " ABCDEFGHI}~
  43. If %GET% == ~ go to exit
  44. If %GET% == } goto getdrive
  45. Set D=%GET%
  46. :exist
  47. If not exist %D%:sdl.com goto again
  48. :ISTHERE
  49. Echo * * *
  50. Echo To skip the action of any question, just press Enter or Return.
  51. Echo * * *
  52. Echo SDL.COM is an excellent replacement for the DOS DIR command.
  53. Echo It is much more versatile than DIR.  The first step is to copy
  54. Echo SDL.COM to the directory with your other DOS command files and/or
  55. Echo your other utility programs.  Please enter the drive and
  56. :askdest
  57. Echo directory that you want SDL.COM to be copied to.  The directory
  58. Echo must already exist, and it should be one that is normally on your
  59. Echo DOS path.  For example, you might enter C:\DOS, or C:\BIN, or
  60. Echo C:\UTIL if you use one of those directories for executable files.
  61. :ENTER
  62. Echo * * *
  63. sdl_get S "Please enter the drive:\directory now: "
  64. If not errorlevel 1 goto next1
  65. Set P=%GET%
  66. IF EXIST %P%\NUL GOTO COPY
  67. Echo %P% does not appear to be a valid drive and directory.
  68. GOTO ENTER
  69. :COPY
  70. Echo You have entered %P%
  71. Echo The command will be COPY %D%:SDL.COM %P%\SDL.COM
  72. sdl_get C "Is this correct (Y,N)? " YN}~
  73. If %GET% == ~ goto exit
  74. If %GET% == } goto next1
  75. If not errorlevel 89 goto isthere
  76. COPY %D%:SDL.COM %P%\SDL.COM
  77. IF NOT EXIST %P%\SDL.COM GOTO NOCOPY
  78. IF (%SDL%) == () SET SDL=S
  79. IF (%SDL%) == () GOTO next1
  80. Echo This is a test of running SDL in its new location.
  81. Echo If SDL pauses with a menu, just press Esc.
  82. pause
  83. %P%\SDL %P%\sdl.com/M/C-
  84. If errorlevel 1 goto next1
  85. :NOCOPY
  86. Echo For some reason SDL does not seem to have been copied to the
  87. Echo destination you specified.  Please re-enter the drive and
  88. goto askdest
  89. :next1
  90. Pause
  91. Echo * * *
  92. Echo The next step is to create a working disk or directory for you
  93. Echo to customize SDL.COM.  If you don't want to do this now, press Esc
  94. Echo or Return at the prompt.
  95. ECHO * * *
  96. ECHO This program will create a working disk or directory
  97. ECHO for the purpose of running the SDLSETUP program.
  98. ECHO * * *
  99. ECHO It is necessary to enter the drive and/or directory
  100. ECHO that you want to use for the working area.  A RAM disk
  101. ECHO would be ideal because it speeds things up and once
  102. ECHO you customize SDL.COM the way you want it, it is not
  103. ECHO necessary to save the working directory.  A directory on
  104. Echo a hard disk works very well also, and the work can easily
  105. Echo be done on a floppy but it will be a little slower.
  106. ECHO * * *
  107. ECHO Enter the drive and/or directory that you want to use.  If you
  108. Echo include a directory, be sure that the directory exists, or that
  109. Echo it is OK to use the DOS MD (Make Directory) command to create it.
  110. ECHO * * *
  111. ECHO Some examples of what you might enter are:
  112. ECHO B:       E:        C:\SDL       D:\MASDIR
  113. sdl_get S "Please enter the drive:\directory now: "
  114. If not errorlevel 1 goto exit
  115. Set P=%GET%
  116. if exist %P%\NUL goto MDOK
  117. Echo * * *
  118. ECHO Creating a working area for SDLSETUP as %P%.
  119. echo If you see the message "Unable to create directory"
  120. ECHO it means that the directory already exists, that it is a
  121. echo ROOT directory, or that the specification was incorrect.
  122. ECHO This does NOT indicate a problem unless you have made
  123. ECHO a mistake in your specification.
  124. echo * * *
  125. ECHO The command will be: MkDir %P%
  126. sdl_get C "Is this correct (Y,N)? " YN~}
  127. If errorlevel 125 goto exit
  128. if errorlevel 78 if not errorlevel 79 goto next1
  129. md %P%
  130. :MDOK
  131. Echo The next command will be COPY %D%:SDL*.* %P%
  132. sdl_get C "Is this correct (Y,n)? " YN}~
  133. If errorlevel 125 goto exit
  134. If not errorlevel 89 goto next1
  135. copy %D%:sdl*.* %P%
  136. echo Files copied to %P%
  137. :exit
  138. Sdl_get BE %A%
  139. Set D=
  140. Set P=
  141. If exist menu.bat menu
  142. Set A=
  143. Set GET=
  144. Echo Exiting to DOS now!
  145. If exist utility.bat utility
  146.